package cn.com.shopec.erp.financing.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @ClassName: FreightSettlement
 * @Description: 运费结算单实体表
 * @author: gaoyaxiong
 * @date: 2013-5-27 下午11:14:13
 */
@Entity
@Table(name = "TBL_FREIGHT_SETTLEMENT")
public class FreightSettlement implements Serializable {

	private static final long serialVersionUID = 1L;
	/** id **/
	private String id;
	/** 结算单据号 **/
	private String statementNo;
	/** 物流公司编号 **/
	private String logisticsNo;
	/** 物流公司名称 **/
	private String logisticsName;
	/** 结算开始日期 **/
	private String startDate;
	/** 结算结算时间 **/
	private String endDate;
	/** 结算总金额 **/
	private double statementTotal;
	/** 创建时间 **/
	private String createTime;
	
	
	/**创建结束时间**/
	private String endTime;
	@Column(name = "end_time")
	public String getEndTime()
     {
          return endTime;
     }

     public void setEndTime(String endTime)
     {
          this.endTime = endTime;
     }

     /** 审核状态 **/
	private int checkState;
	/** 审核人 **/
	private String checkName;
	/** 审核时间 **/
	private String checkTime;
	/** 结算状态 **/
	private int statementState;
	/** 结算时间 **/
	private String statementTime;
	/** 结算人 **/
	private String statementName;
	/** 删除标志 **/
	private int deleteFlag;
	/** 本期结算金额 **/
	private double nowStatementTotal;
	/** 本期之前结算金额 **/
	private double beforeStatementTotal;
	/**实际结算金额**/
	private double actTotal=0.0;
	

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "statement_no")
	public String getStatementNo() {
		return statementNo;
	}

	public void setStatementNo(String statementNo) {
		this.statementNo = statementNo;
	}

	@Column(name = "logistics_no")
	public String getLogisticsNo() {
		return logisticsNo;
	}

	public void setLogisticsNo(String logisticsNo) {
		this.logisticsNo = logisticsNo;
	}

	@Column(name = "logistics_name")
	public String getLogisticsName() {
		return logisticsName;
	}

	public void setLogisticsName(String logisticsName) {
		this.logisticsName = logisticsName;
	}

	@Column(name = "start_date")
	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	@Column(name = "end_date")
	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	@Column(name = "statement_total")
	public double getStatementTotal() {
		return statementTotal;
	}

	public void setStatementTotal(double statementTotal) {
		this.statementTotal = statementTotal;
	}

	@Column(name = "create_time")
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name = "check_state")
	public int getCheckState() {
		return checkState;
	}

	public void setCheckState(int checkState) {
		this.checkState = checkState;
	}

	@Column(name = "check_name")
	public String getCheckName() {
		return checkName;
	}

	public void setCheckName(String checkName) {
		this.checkName = checkName;
	}

	@Column(name = "check_time")
	public String getCheckTime() {
		return checkTime;
	}

	public void setCheckTime(String checkTime) {
		this.checkTime = checkTime;
	}

	@Column(name = "statement_state")
	public int getStatementState() {
		return statementState;
	}

	public void setStatementState(int statementState) {
		this.statementState = statementState;
	}

	@Column(name = "statement_time")
	public String getStatementTime() {
		return statementTime;
	}

	public void setStatementTime(String statementTime) {
		this.statementTime = statementTime;
	}

	@Column(name = "statement_name")
	public String getStatementName() {
		return statementName;
	}

	public void setStatementName(String statementName) {
		this.statementName = statementName;
	}

	@Column(name = "DELETE_FLAG")
	public int getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	
	@Column(name = "now_statement_total")
	public double getNowStatementTotal() {
		return nowStatementTotal;
	}

	public void setNowStatementTotal(double nowStatementTotal) {
		this.nowStatementTotal = nowStatementTotal;
	}
	
	@Column(name = "before_statement_total")
	public double getBeforeStatementTotal() {
		return beforeStatementTotal;
	}

	public void setBeforeStatementTotal(double beforeStatementTotal) {
		this.beforeStatementTotal = beforeStatementTotal;
	}
	@Column(name="ACT_TOTAL")
	public double getActTotal() {
		return actTotal;
	}

	public void setActTotal(double actTotal) {
		this.actTotal = actTotal;
	}
}
